package com.lbc.common.constants;

/**
 * @author xyl
 * @date 2021-03-03 11:36
 */
public class Constants {

    /**
     * 登录后存的 , redis前缀
     */
    public static final String REDIS_KEY_TOKEN_PREFIX = "token-";
    /**
     * 登录时间前缀
     */
    public static final String REDIS_KEY_LAST_TIME_PREFIX = "last-time-";

    /**
     * TOKEN 过期时间 12小时
     */
    public static final int TOKEN_EXPIRE_TIME = 12;

    /**
     * 图形验证码, 两分钟
     */
    public static final int CAPTCHA_EXPIRE_TIME = 2;

    /**
     * 图形验证码 , redis前缀
     */
    public static final String REDIS_KEY_CAPTCHA_PREFIX = "captcha-";

    /**
     * 注册邮箱 , redis前缀
     */
    public static final String REDIS_KEY_REGISTER_EMAIL_PREFIX = "register-email-";

    /**
     * 修改邮箱密码 , redis前缀
     */
    public static final String REDIS_KEY_RESET_PASSWORD_PREFIX = "reset-password-";

    /*发送邮箱验证码的主邮箱*/
    public static final String SEND_EMAIL = "1973812565@qq.com";


    /*图片存储的本地路径*/
    public static final String NATIVE_IMAGE_PATH = "C:/image/lbc/";

    /*图片虚拟访问路径*/
    public static final String VIRTUAL_IMAGE_PATH = "/lbc/image/";


    //审核中
    public static final int USER_STATE0 = 0;
    //正常
    public static final int USER_STATE1 = 1;
    //已停用
    public static final int USER_STATE2 = 2;


    public static final int ROLE_ADMIN = 1;
    public static final int ROLE_USER = 2;
    public static final int ROLE_SCHOOL = 3;
    public static final int ROLE_ORGANIZATION = 4;
    public static final int ROLE_PARENTS = 5;

}
